/*
* npm install @fingerprintjs/fingerprintjs (vue-admin-arco 使用 pnpm)
* */

import FingerprintJS from '@fingerprintjs/fingerprintjs';

export class Device {

  static async getDeviceId() {
    const fp = await FingerprintJS.load();
    const result = await fp.get();
    return result.visitorId
  }

}